package account.dao.factory;


public class DAOAbstractFactory {
	
	private static DataBase dbType = DataBase.MYSQL;
	
	public enum DataBase {
		MYSQL
	}
	
	public static DAOFactory getFactory( )
	{
		switch( dbType ) {
		case MYSQL:
			return new MysqlDAOFactory();
		}
		return null;
	}

	public static void init( DAOAbstractFactory.DataBase dbType ) {
		DAOAbstractFactory.dbType = dbType;
	}

}
